<link rel="stylesheet" href="resources/weui/dist/style/weui.min.css"/>
<div style="background-color: white">
	<form action="index.php/sdannounce/list/" method="post" id="sd_ann_form">
		<div class="weui_cells">
			<div class="weui_cell weui_cell_select weui_select_before">
<!--				<div class="weui_cell_bd ">-->
<!--					<label class="weui_label">法院</label>-->
<!--				</div>-->
				<div class="weui_cell_hd weui_cell_primary">
					<select class="weui_select" name="cbfy" id="cbfy">
						<option value="" <?php if ($query_fy==''){
							echo "selected='selected'";
						} ?>>全部</option>
						<?php foreach($courts as $court): ?>
							<option value="<?php echo $court['id'] ?>"
							<?php
							if ($query_fy==$court['id']){
								echo "selected='selected'";
							}
							?>"><?php echo $court['courtname']?></option>
						<?php endforeach;?>
					</select>
				</div>
				<div class=" weui_cell_hd weui_cell_ft ">
					<div class="bd spacing" style="float: right">
						<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" id="search_btn">搜索</a>
					</div>
				</div>
			</div>
		</div>
	</form>
	<?php if (count($sd_announces)==0){ ?>
	<h3>暂时没有查询到相关信息！</h3>
	<?php }else if (count($sd_announces->list)==0){ ?>
	<h3>暂时没有查询到相关信息！</h3>
	<?php }else{ ?>
		<input type="text" style="display: none" id="totalcount" value="<?php echo $sd_announces->total; ?>"/>
	<ul class="list-group" id="sdul">
		<?php foreach ($sd_announces->list as $item):  ?>
			<li  class="list-group-item sd_li">
				<div class="row" style="margin-bottom: 10px;">
					<div >
						<div class="col-xs-3">
							<span>案件号</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->CaseNo ?></span>
						</div>
					</div>
					<div >
						<div class="col-xs-11">
							<?php
								if(mb_strlen($item->Content)<22){
									echo $item->Content;
								}else{
									$outs=mb_substr($item->Content,0,20).'...';
									echo $outs;
								}
							?>
						</div>
						<div style="text-align:center;">
							<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
						</div>
					</div>
				</div>
				<div class="row detail" style="display:none; border-top-style: solid;border-top-width: 1px;border-top-color: #888888" >
					<div style="text-align: center"><span ><strong><?php echo $item->CaseNo ?></strong></span></div>
					<div style="text-align: center"><span>发布时间:
						<?php
							$time= $item->Time;
							$time=str_replace("/Date(","",$time);
							$time=str_replace(")/","",$time);
							$time=$time/1000;
							$time1=date("Y-m-d",$time);
							echo $time1 ?></span>
						</div>
					<p>
						<?php echo $item->Content ?>
					</p>
				</div>
			</li>
		<?php endforeach; ?>
	</ul>
	<?php } ?>
</div>
<div class="weui_cells" style="display: none" id="loadingInfo">
	<div  class="weui_cell">
		<div class="weui_cell_bd " >
			<p>数据加载中</p>
		</div>
	</div>
</div>
<script src="resources/js/sd_announce.js"></script>